﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

//2-1中，激活Trigger_F,并关闭一个风扇
public class Trigger_G : TriggerArea
{
    [SerializeField]
    private Trigger_F trigger;
    [SerializeField]
    private Fan fan;

    protected override void OnEnter(Collider2D collider)
    {
        trigger.gameObject.SetActive(true);
        fan.Active = false;
    }
}
